
package com.hitechbangla.fctu.base.map;

import java.awt.Graphics;
import java.util.ArrayList;
import java.util.List;

public class WholeMap extends FCTUMap{
    
    public List<FCTUMap> maplist ;
    public List<Integer> viewMap;   //maps of this indices will be drawn on canvas
    public void add(FCTUMap m)
    {
        maplist.add(m);
    }
    public void draw(Graphics g, float ratio)
    {
       for(int index : viewMap){
           maplist.get(index).draw(g, ratio);
       }//end for
    }
    
    WholeMap(){
        maplist = new ArrayList<FCTUMap>();
        viewMap = new ArrayList<Integer>();    
    }
}
